package temp.lho.lws.mapper;

import org.apache.ibatis.annotations.Param;
import temp.lho.lws.pojo.TbRole;
import temp.lho.lws.vo.LoginVo;

import java.util.List;


/**
 * @author liuws
 * @create 2020-06-28 9:58
 */
public interface ILoginMapper extends IBaseMapper<LoginVo> {

    /**
     * 登陆
     * @param useraccount 账户
     * @return
     */
    LoginVo login(@Param("useraccount") String useraccount);

    /**
     * 获取用户角色列表
     * @param userId
     * @return
     */
    List<TbRole> findUserRoles(Integer userId);
}
